{include file="file:$theme_global/_header.tpl"}
{include file="file:$theme_global/_messages.tpl"}
<div id="main" class="grid_12">
<h1>{$post.title}</h1>
<p>{$post.publish_on|date_format:$format_datetime_small} by 
<a href="{url}/user/profile/username/{$post.author_username}{/url}">
{if isset($post.author)}
	{$post.author.full_name}
{else}
	{$post.author_username}
{/if}
</a>
</p>

{$post.body}
	
</div>
<div class="grid_4 sidenav">
<h3>Tags</h3>
{if count($post.tags) gt 0}
<ul>
{foreach from=$post.tags item=tag}
<li>{$tag}</li>
{/foreach}
</ul>
{/if}

{if count($similar_posts) gt 0}
<h3>{t}Related Posts{/t}</h3>
{foreach from=$similar_posts item=similar_post}
<p><b><a href="{url}/blog/index/view/slug/{$similar_post.slug}{/url}">{$similar_post.title}</a></b><br />
{$similar_post.publish_on|date_format:$format_datetime_small} - {$similar_post.body|strip_tags:true|truncate}</p>
{/foreach}
{/if}

</div>
{include file="file:$theme_global/_footer.tpl"}
